Repository navigation
feat(research): add Phase 11 BREADTH lower-tail correlation gate - #818
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
AI Code Review (deepseek /
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1f53d2a8c2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
AI Code Review (deepseek /
|
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
🛡️ Codex Security Review · Automatically triggeredSecurity review completed. No security issues were found in this pull request. Reviewed commit: Only the user who started this review can view the report in Codex. ℹ️ About Codex security reviews in GitHubThis is an experimental Codex feature. Security reviews are triggered when:
Once complete, Codex will leave suggestions, or a comment if no findings are found. |
AI assistance
Antigravity AI assistant (
gemini-3.1-pro)What changed
src/quant_platform_kit/research_stats/tail_correlation.pyimplementingTailCorrelationResultandlower_tail_correlation_gate(...)for Phase 11BREADTHoffline cross-asset evaluation:benchmark_returns <= quantile(tail_quantile)) and a paired one-sided stationary-bootstrap upper confidence bound (_stationary_indiceswith mandatory deterministicseed).STATUS_UNCOMPUTABLE,passes_gate=False) on invalid inputs, insufficient tail observations, zero tail variance, or undefined resample variance, and passes only when both point estimate and UCB are strictly belowmax_tail_correlation(default0.50).numpyimport viabootstrap._numpy()and strict research-only isolation (no broker/account/runtime imports).TailCorrelationResultandlower_tail_correlation_gatefromquant_platform_kit.research_stats.tests/test_research_stats_tail_correlation.py.How verified
git diff --checkpassed..venv/bin/python -m pytest -q tests/test_research_stats_tail_correlation.py tests/test_research_stats_bootstrap.py tests/test_research_stats_import_boundary.py tests/test_architecture_boundaries.py->40 passed in 18.13s..venv/bin/ruff check src/quant_platform_kit/research_stats/__init__.py src/quant_platform_kit/research_stats/tail_correlation.py tests/test_research_stats_tail_correlation.py->All checks passed!.Why
Implements the reproducible offline
< 0.50lower-tail correlation +95%one-sided stationary-bootstrap UCB gate specified in Phase 11BREADTHpre-registration (QuantRuntimeSettingsdocs/quant/breadth-preregistration.md) without touching any runtime, execution, or frozen deployment paths.Risk
src/quant_platform_kit/research_stats/+tests/).